package com.scau.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.scau.pojo.Section;
import com.scau.pojo.Video;
import com.scau.service.SectionService;
import com.scau.service.VideoService;

@RestController
@RequestMapping("/videoController")
public class VideoController{

	@Autowired
	VideoService videoService;
	
	@RequestMapping("/query")
	public List<Video> query(@RequestParam int seId) {
		System.out.println(seId);
		return videoService.query(seId);
	}

}
